package edzest.basic;

public class a23 {

	public static void main(String[] args) {
		int x=3;
		int y=2;
		int z = x+y;
		if(x>2){
			if(y>2){
				z=x+y;
				System.out.println("z is "+z);
			}else{
				System.out.println("x is "+x);
			}
		}
		
		x=3;
		y=4;
		z = x+y;
		if(x>2){
			if(y>2){
				z=x+y;
				System.out.println("z is "+z);
			}else{
				System.out.println("x is "+x);
			}
		}
		
		x=2;
		y=2;
		z = x+y;
		if(x>2){
			if(y>2){
				z=x+y;
				System.out.println("z is "+z);
			}else{
				System.out.println("x is "+x);
			}
		}
	}

}
